package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallPeripheryOrderDO;
import com.starlink.model.request.MallPeripheryOrderRequest;
import com.starlink.model.vo.MallPeripheryOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallPeripheryOrderDtoMapper {

    MallPeripheryOrderDtoMapper INSTANCE = Mappers.getMapper(MallPeripheryOrderDtoMapper.class);

    /**
    * DO to VO
    * @param mallPeripheryOrderDO
    * @return
    */
    MallPeripheryOrderVO do2VO(MallPeripheryOrderDO mallPeripheryOrderDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallPeripheryOrderDO request2DO(MallPeripheryOrderRequest request);
}
